import { applyMiddleware, combineReducers, createStore } from 'redux'
import reduxPromise from 'redux-promise'
import userReducer from './user/reducer'

const reducers = combineReducers({
  userModule: userReducer
})

const store = createStore(reducers, applyMiddleware(reduxPromise))

export default store